package com.gd.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gd.util.BaseUtil;

@Controller
public class UtilController {

	@RequestMapping(value="/getValueByPropkey.htm", method = RequestMethod.POST)
	@ResponseBody
	public String getValueByPropkey(HttpServletRequest request,HttpServletResponse response,HttpSession session){
		String key = request.getParameter("key");
		return "{'path':'"+new BaseUtil().getValueFromProp(key)+"'}";
	}

}
